package com.rybbaby.tss.front.tssClassAttendance.dao.imp;

import com.rybbaby.tss.core.web.dao.imp.GenericDao;
import com.rybbaby.tss.front.tssClassAttendance.dao.ITssClassAttendanceDao;
import com.rybbaby.tss.front.tssClassAttendance.entity.TssClassAttendance;
import org.springframework.stereotype.Repository;

/**
 * @description �������ݿ����ʵ��
 * 
 * @author �״���
 * 
 * @createDate 2017-09-20 ����5:57:00
 */
@Repository
public class TssClassAttendanceDaoImp extends GenericDao<TssClassAttendance> implements ITssClassAttendanceDao {

    @Override
    public int updateClassAttendance(String lessonsId,int classAttendance) {
        String sql = "UPDATE tss_class_attendance\n" +
                "SET attendanceStatus = "+classAttendance+"\n" +
                "WHERE\n" +
                "\tlessonsId = '"+lessonsId+"'";
        return this.updateBySql(sql);
    }
}
